-
Notifications
You must be signed in to change notification settings - Fork 1.2k
DOC: clarify Linke turbidity source and usage in Ineichen clearsky model #2675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DOC: clarify Linke turbidity source and usage in Ineichen clearsky model #2675
Conversation
pvlib/clearsky.py
Outdated
| >>> | ||
| >>> tl = lookup_linke_turbidity(times, loc.latitude, loc.longitude) | ||
| >>> cs = ineichen(times, loc.latitude, loc.longitude, | ||
| ... linke_turbidity=tl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this example to the ineichen docstring. It would make more sense there.
pvlib/clearsky.py
Outdated
| provided by SoDa [4]_, [5]_. Users must supply Linke turbidity values | ||
| explicitly unless providing their own turbidity data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| provided by SoDa [4]_, [5]_. Users must supply Linke turbidity values | |
| explicitly unless providing their own turbidity data. | |
| provided by SoDa [4]_, [5]_. |
This sentence doesn't make sense to me. I suggest deleting it.
|
|
||
| The Linke turbidity climatology used by this function is sourced from | ||
| SoDa (Solar Radiation Data) and corresponds to the references cited in | ||
| :py:func:`pvlib.clearsky.ineichen`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make more sense to include and cite those references in this docstring, instead of referencing the ineichen docstring?
|
Thanks for the helpful review @kandersolar! I've updated the PR to:
Please let me know if this looks good now. |
Description
The documentation for
pvlib.clearsky.ineichencould be misleading, as itsuggested that default Linke turbidity values from SoDa are used implicitly.
In reality, these values must be explicitly obtained via
lookup_linke_turbidityand passed toineichen.This PR clarifies the documentation by:
ineichendocstring to explicitly referencelookup_linke_turbidityas the source of SoDa Linke turbidity valueslookup_linke_turbiditydocstring(
lookup_linke_turbidity→ineichen)This is a documentation-only change and does not modify any functionality.